
import 'dart:convert';

SchoolOverviewData schoolOverviewDataFromJson(String str) =>
    SchoolOverviewData.fromJson(json.decode(str));

String schoolOverviewDataToJson(SchoolOverviewData data) =>
    json.encode(data.toJson());

class SchoolOverviewData {
  SchoolOverviewData({
    this.schoolName,
    this.classesInUse,
    this.totalTeachers,
    this.totalStudents,
    this.maxStudent,
    this.studentAvailable,
    this.numBooks,
    this.numQuizs,
  });

  String? schoolName;
  int? classesInUse;
  int? totalTeachers;
  int? totalStudents;
  int? maxStudent;
  int? studentAvailable;
  int? numBooks;
  int? numQuizs;

  factory SchoolOverviewData.fromJson(Map<String, dynamic> json) =>
      SchoolOverviewData(
        schoolName: json["schoolName"],
        classesInUse: json["classesInUse"],
        totalTeachers: json["totalTeachers"],
        totalStudents: json["totalStudents"],
        maxStudent: json["maxStudent"],
        studentAvailable: json["studentAvailable"],
        numBooks: json["numBooks"],
        numQuizs: json["numQuizs"],
      );

  Map<String, dynamic> toJson() => {
        "schoolName": schoolName,
        "classesInUse": classesInUse,
        "totalTeachers": totalTeachers,
        "totalStudents": totalStudents,
        "maxStudent": maxStudent,
        "studentAvailable": studentAvailable,
        "numBooks": numBooks,
        "numQuizs": numQuizs,
      };
}
